@echo off
rem ==================================================
rem Configuration
rem
rem MAIN = class containing the main method
rem ARGS = list of arguments, delimited by space
rem        Use quotation marks for args with space
rem        Use %*% for user provide args
rem ==================================================

set MAIN=com.netskiosk.ibtloc.api.IbtlocScheduler

rem ==================================================
rem RUN
rem ==================================================

set cp=.\config;.\classes
for %%i in (.\lib\*.jar) do call :CP %%i

set opath=%PATH%
set PATH=%PATH%;lib

java -Xmx256m -classpath %CP% %JAVA_OPTS% %MAIN% %*

set cp=
set PATH=%opath%
GOTO :EOF 

:CP
SET CP=%CP%;%1
GOTO :EOF 

:EOF